package models.tile;

import java.awt.Image;
import java.io.IOException;

import javax.swing.ImageIcon;

public class NormalTile extends Tile{
	
	public int numX, numY;

	public NormalTile(int i, int j, int numX, int numY, int tilelong) {
		super(i,j,tilelong);
		this.numX = numX;
		this.numY = numY;
	}
	
	public void addFrame(String path) throws IOException{
		
		Image image = new ImageIcon(getClass().getResource(path)).getImage();
		image = image.getScaledInstance(width, width, Image.SCALE_AREA_AVERAGING);
		tiles.add(image);
		
	}

}
